Skip to content

Conversation

@g-sam
Copy link

@g-sam g-sam commented May 16, 2018

We would like to mock orcid with our own service.

@g-sam
Copy link
Author

g-sam commented May 16, 2018

Not tested yet!

@hubgit
Copy link
Owner

hubgit commented May 16, 2018

I think this currently prevents scope from being passed in as an option.

Could you instead do OAuth2Strategy.call(this, { ...defaults, ...options }, verify)?

@hubgit
Copy link
Owner

hubgit commented May 16, 2018

Might it also make more sense to keep the real URLs but mock at the HTTP request level, with something like nock?

@g-sam g-sam force-pushed the master branch 2 times, most recently from 5295380 to db81e63 Compare May 16, 2018 12:57
@g-sam
Copy link
Author

g-sam commented May 16, 2018

Updated and tested indirectly in our tests.

We thought nock might be rather complicated due to the various redirects (since this is for browser testing in Testcafe), but if you fancy doing a trial implementation would be interested to see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants